#ifndef MARIOGAME_H
#define MARIOGAME_H

#include "Engine2D/dxgame.h"
#include "Engine2D/quadtree"
#include "mario.h"
#include <vector>

#define SCREEN_WIDTH 800
#define SCREEN_HEIGHT 600

class MarioGame : public DXGame
{	
  public:
    MarioGame(HINSTANCE, const char*);
    virtual bool LoadContent();
    virtual ~MarioGame();

  protected:
    virtual void Update(unsigned int = 0);
    virtual void Render(unsigned int = 0);
		
  private:
    virtual bool IsGameOver();

    Surface* background;
    std::vector<GameObject*> vObject;
    QuadTree<GameObject>* quadtree;
    Mario* mario;
    int widthMap;
};

#endif